package com.yt.app.provider;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

public class AppProviderLauncher {
    public static void main(String[] args){
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[] { "app-context.xml" });
        context.start();

        try {
            System.out.println("开始阻塞");
            System.in.read(); // 按任意键退出
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
